package com.company.service;

import java.util.List;

import com.company.dao.ChanpinfuwuDao;
import com.company.entity.Chanpinfuwu;

public class ChanpinfuwuService {
	ChanpinfuwuDao chanpinfuwuDao;

	public ChanpinfuwuDao getChanpinfuwuDao() {
		return chanpinfuwuDao;
	}

	public void setChanpinfuwuDao(ChanpinfuwuDao chanpinfuwuDao) {
		this.chanpinfuwuDao = chanpinfuwuDao;
	}

	public Chanpinfuwu query(int id) {
		return chanpinfuwuDao.query(id);
	}
	public List<Chanpinfuwu> querys() {
		return chanpinfuwuDao.querys();
	}

	public void save(Chanpinfuwu chanpinfuwu) {
		chanpinfuwuDao.save(chanpinfuwu);
	}

	public void update(Chanpinfuwu chanpinfuwu) {
		chanpinfuwuDao.update(chanpinfuwu);
	}

	public void delete(Chanpinfuwu chanpinfuwu) {
		chanpinfuwuDao.delete(chanpinfuwu);
	}
}
